package com.triplelink.entity;

import resource.UrisClasses;
import resource.UrisProperties;

import com.triplelink.annotations.ClassType;
import com.triplelink.annotations.ObjectProperty;
import com.triplelink.annotations.Property;
import com.triplelink.entity.suggest.CitySuggestEntity;

@ClassType(type = UrisClasses.SUPER_HERO)
public class HeroEntity extends BasicEntity {

	@Property(uri = UrisProperties.NAME)
	private String name;

	@ObjectProperty(cascadeSelect = true, cascadeSave = true)
	@Property(uri = UrisProperties.SECRET_IDENTITY)
	private PersonEntity secretIdentity;
	
	@ObjectProperty(cascadeSelect = true, cascadeSave = true)
	@Property(uri = UrisProperties.LIVES_IN_CITY)
	private CitySuggestEntity livesInCity;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public CitySuggestEntity getLivesInCity() {
		return livesInCity;
	}

	public void setLivesInCity(CitySuggestEntity livesInCity) {
		this.livesInCity = livesInCity;
	}

	public PersonEntity getSecretIdentity() {
		return secretIdentity;
	}

	public void setSecretIdentity(PersonEntity secretIdentity) {
		this.secretIdentity = secretIdentity;
	}
}